<?php
declare (strict_types = 1);

namespace app\api\controller;

use app\api\model\Admin;
use app\api\model\Brand;
use app\api\services\BrandServices;
use app\Request;
use think\response\Json;

class Index
{
    public function login(Request $request)
    {
        $data=[
            'type_name' => '手机',
            'attr' => [
                [
                    'name' => '毛重',
                    'sort' => 100,
                    'value' => ['500g', '', '2000g', '5000g', '']
                ],
                [
                    'name' => '产地',
                    'sort' => 100,
                    'value' => ['国产', '港货', '美版']
                ]
            ],
            'spec' => [
                [
                    'name' => "颜色",
                    'sort' => 100,
                    'value' => ['黑色', '土豪金', '蓝色', '红色', '白色', '', '']
                ], [
                    'name' => "=内存",
                    'sort' => 100,
                    'value' => ['64G', '256G', '1T', '128G']
                ],
                [
                    'name' => "产地",
                    'sort' => '100',
                    'value' => ['国产','美国','港版']
                ]
            ],
        ];
        echo json_encode($data);
    }


}

